package cn.hchaojie.daily.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Daily {
	private Long id;
	private String content;
	private String digest;
	private Long uid;
	private Date created;
	private Integer views;
	
	private String user;
	
	private List<Keyword> keyword = new ArrayList<>();
	
	public Daily() {}
	
	public Daily(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getDigest() {
		return digest;
	}

	public void setDigest(String digest) {
		this.digest = digest;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public Integer getViews() {
		return views;
	}

	public void setViews(Integer views) {
		this.views = views;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Daily [id=");
		builder.append(id);
		builder.append(", content=");
		builder.append(content);
		builder.append(", digest=");
		builder.append(digest);
		builder.append(", uid=");
		builder.append(uid);
		builder.append(", created=");
		builder.append(created);
		builder.append(", views=");
		builder.append(views);
		builder.append(", user=");
		builder.append(user);
		builder.append("]");
		return builder.toString();
	}

	public List<Keyword> getKeyword() {
		return keyword;
	}

	public void setKeyword(List<Keyword> keyword) {
		this.keyword = keyword;
	}
}
